package com.hugh.lagouservicecode.service.impl;

import com.hugh.lagouservicecode.service.EmailServiceFeignClient;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @Author: Hugh
 * @Date: 2020/7/21
 */
@Component  // 别忘了这个注解，还应该被扫描到
@Slf4j
public class EmailFallback implements EmailServiceFeignClient {

    @Override
    public Boolean sendCode(String email, String code) {
        log.error("EmailFallback 发送邮件失败");
        return Boolean.FALSE;
    }
}
